﻿<ResourceDictionary 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Charts="clr-namespace:DiscoveryLogic.Workflows.Monitor.Avalon.Charts"
	>

	<DrawingBrush x:Key="{x:Static Charts:Chart.DefaultGridBrush}" Viewport="0,0,4,4" ViewportUnits="Absolute" TileMode="None">
		<DrawingBrush.Drawing>
			<DrawingGroup>
				<DrawingGroup.Children>
					<GeometryDrawing Geometry="M0,0 L1,0 1,0.1, 0,0.1Z">
						<GeometryDrawing.Brush>
							<SolidColorBrush Color="#FFDBDAD8" />
						</GeometryDrawing.Brush>
					</GeometryDrawing>
					<GeometryDrawing Geometry="M0,0 L0,1 0.1,1, 0.1,0Z">
						<GeometryDrawing.Brush>
							<SolidColorBrush Color="#FFDBDAD8" />
						</GeometryDrawing.Brush>
					</GeometryDrawing>
				</DrawingGroup.Children>
			</DrawingGroup>
		</DrawingBrush.Drawing>
	</DrawingBrush>

	<Style x:Key="{x:Static Charts:Chart.DefaultGridStyle}" TargetType="{x:Type Canvas}">
		<Setter Property="Background" Value="{DynamicResource {x:Static Charts:Chart.DefaultGridBrush}}" />
	</Style>

	<SolidColorBrush x:Key="{x:Static Charts:Chart.DefaultSeriesBrush}" Color="Black" />

	<Style x:Key="{x:Static Charts:Chart.DefaultSeriesStyle}" TargetType="{x:Type Path}">
		<Setter Property="Stroke" Value="{DynamicResource {x:Static Charts:Chart.DefaultSeriesBrush}}" />
		<Setter Property="StrokeThickness" Value="1.5" />
		<Setter Property="StrokeLineJoin" Value="Round" />
	</Style>

	<SolidColorBrush x:Key="{x:Static Charts:Chart.DefaultShadowBrush}" Color="#FFDBDAD8" />

	<Style x:Key="{x:Static Charts:Chart.DefaultShadowStyle}" TargetType="{x:Type Path}">
		<Setter Property="Stroke" Value="{DynamicResource {x:Static Charts:Chart.DefaultShadowBrush}}" />
		<Setter Property="StrokeThickness" Value="1.5" />
		<Setter Property="StrokeLineJoin" Value="Round" />
	</Style>

	<SolidColorBrush x:Key="{x:Static Charts:Chart.DefaultFillBrush}" Color="#7FFFD2B9" />

	<Style x:Key="{x:Static Charts:Chart.DefaultFillStyle}" TargetType="{x:Type Path}">
		<Setter Property="Fill" Value="{DynamicResource {x:Static Charts:Chart.DefaultFillBrush}}" />
	</Style>

	<Style TargetType="{x:Type Charts:Chart}">
		<Setter Property="MinWidth" Value="100.0" />
		<Setter Property="MinHeight" Value="100.0" />
		<Setter Property="SeriesStyle" Value="{DynamicResource {x:Static Charts:Chart.DefaultSeriesStyle}}" />
		<!--
    <Setter Property="GridStyle" Value="{DynamicResource {x:Static im:Chart.DefaultGridStyle}}" />
		<Setter Property="SeriesStyle" Value="{DynamicResource {x:Static im:Chart.DefaultSeriesStyle}}" />
		<Setter Property="ShadowStyle" Value="{DynamicResource {x:Static im:Chart.DefaultShadowStyle}}" />
		<Setter Property="FillStyle" Value="{DynamicResource {x:Static im:Chart.DefaultFillStyle}}" />
    -->
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Charts:Chart}">
					<Border Background="{TemplateBinding Background}"
							BorderBrush="{TemplateBinding BorderBrush}"
							BorderThickness="{TemplateBinding BorderThickness}">
						<Canvas Name="ChartCanvas"
								Width="{TemplateBinding Width}"
								Height="{TemplateBinding Height}"
								ClipToBounds="True"
								Charts:Chart.IsChartHost="True" />
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>